package com.education.service.oss.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 创建常量读取工具类
 * Created by Lance on 2020/06/23 17:21
 */
@Data
@Component
@ConfigurationProperties(prefix = "aliyun.oss")     // 读取 application.yml 配置文件中 aliyun oss下面的节点配置
public class OssProperties {
    private String endpoint;
    private String keyId;
    private String keySecret;
    private String bucketName;
}
